remove text line that come before the matplotlib chart